from pathlib import Path
p = Path('F:\\python\\第1章\\供应商信息表.xlsx')
file_name = p.name
file_stem = p.stem
folder_name = p.parent.name
folder_stem = p.parent.stem
print(file_name)
print(file_stem)
print(folder_name)
print(folder_stem)
